<table width="100%" border="0" cellpadding="0" cellspacing="0" background="/images/mainpage-sliced_16.jpg">
  <tr>
    <td width="20" height="40">&nbsp;</td>
    <td class="style5" style="border-right:solid 1px #FFFFFF;">View Created Projects</td>
  </tr>
</table>
<table width="100%" border="0">
  <tr class="style2" align="center" background="/images/mainpage-sliced_11.jpg">
    <td><strong>Project Name</strong></td>
    <td><strong>Milestones</strong></td>
    <td><strong>Tasks</strong></td>
    <td><strong>Resources</strong></td>
  </tr>
  <?php 
  foreach ($projects as $i => $projectDetail): ?>
  <tr class="regulartext_<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
    <td align="center" style="text-decoration:underline"><a href="<?php echo url_for(array('module' => 'project', 'action' => 'show', 'projectname_slug' => $projectDetail['project_name_slug'], 'projectid' => $projectDetail['project_id'], 'loggedinuser' => $sf_user->getUserId()))?>"><?php echo $projectDetail['project_name'] ?></a></td>
    <td align="center"><?php echo $projectDetail['milestone_count'] ?></td>
    <td align="center"><?php echo $projectDetail['task_count'] ?></td>
    <td align="center"><?php echo $projectDetail['resource_count'] ?></td>
  </tr>
  <?php endforeach; ?>  
</table>
<hr/>
<?php if ($sf_user->hasPermission("project.create"))
{ ?>
<div class="regulartext"><a href="<?php echo url_for('project/new') ?>">Create New Project</a></div>
<?php
}
?>